{% extends "base.html" %}
{% block head %}
    <head>
        <meta charset="UTF-8">
        <title>测试管理系统</title>
        <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
        <link rel="shortcut icon" href="{{ url_for('static', filename='favicon.ico') }}">
        <link rel="stylesheet" href="../static/layui/css/layui.css">
        <script src="../static/layui/layui.js"></script>
        <!--     <script type="text/javascript">try { Typekit.load(); } catch (e) { }</script> -->
        <script type="text/javascript" src="../static/js/tool_p.js"></script>
    </head>
{% endblock head %}
{% block left %}
    {{ super() }}
{% endblock left %}
{% block right %}
    {{ super() }}
    <!-- 修改name（页面名称） -->
    {% set name = '集成报告' %}
    <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
        <legend>{{ name }}</legend>


    </fieldset>

    <!-- 页面私有部分 -->
    <body>
    <div style="padding: 20px; background-color: #F2F2F2;">
        <div class="layui-row layui-col-space15">
            <div class="layui-col-md4">
                <div class="layui-card" style="height: 120px">
                    <div class="layui-card-header" style="font-size:20px">JOB_NAME</div>
                    <div class="layui-card-body">

                        <div style="font-weight: 800;font-size:30px;text-align: center" >
                            {{ JOB_NAME }}
                        </div>
                    </div>
                </div>
            </div>
            <div class="layui-col-md4">
                <div class="layui-card" style="height: 120px">
                    <div class="layui-card-header" style="font-size:20px">BUILD_ID</div>
                    <div class="layui-card-body">
                        <div style="font-weight: 800;font-size:30px;text-align: center">
                            {{ BUILD_ID }}
                        </div>

                    </div>
                </div>
            </div>
            <div class="layui-col-md4">
                <div class="layui-card" style="height: 120px">
                    <div class="layui-card-header" style="font-size:20px">结果</div>
                    <div class="layui-card-body">
                        <div style="font-weight: 800;font-size:30px;text-align: center">
                            {% if repost == '100%' %}
                            <div style="color: #00FF00">
                                通过率：{{ repost }}
                            </div>
                            {% else %}
                            <div style="color: red">
                                通过率：{{ repost }}
                            </div>
                            {% endif %}
                        </div>

                    </div>
                </div>
            </div>
            <div class="layui-col-md12">
                <div class="layui-card">
                    <div class="layui-card-header"><h2>yapi接口自动化</h2></div>

                    {% if yapi != [] %}

                    {% for col in yapi %}
                    <div class="layui-card-body" >
                        测试集：{{ col[3] }}

                        共执行用例条:{{ col[4] }}

                        成功:{{ col[5] }}

                        失败:{{ col[6] }}
                        <a href="{{ col[7] }}" target="_blank">查看详情</a>
                    </div>
                    {% endfor %}

                    {% else %}
                     <div class="layui-card-body" >
                     暂无数据
                 {% endif %}

                </div>
            </div>
            <div class="layui-col-md12">
                <div class="layui-card">
                    <div class="layui-card-header"><h2>sonar扫描</h2></div>

                 {% if sonar != [] %}

                    {% for col in sonar %}
                    <div class="layui-card-body" >
                        测试集：{{ col[3] }}
                        <br>
                        共执行用例条:{{ col[4] }}
                        <br>
                        成功:{{ col[5] }}
                        <br>
                        失败:{{ col[6] }}
                        <br>
                        <a href="{{ col[7] }}" target="_blank">查看详情</a>
                    </div>
                    {% endfor %}


                 {% else %}
                     <div class="layui-card-body" >
                     暂无数据
                 {% endif %}


                </div>
            </div>

            <div class="layui-col-md12">
                <div class="layui-card">
                    <div class="layui-card-header"><h2>ui自动化</h2></div>

                    {% if web_ui != [] %}

                    {% for col in web_ui %}
                    <div class="layui-card-body" >
                        测试集：{{ col[3] }}
                        <br>
                        共执行用例条:{{ col[4] }}
                        <br>
                        成功:{{ col[5] }}
                        <br>
                        失败:{{ col[6] }}
                        <br>
                        <a href="{{ col[7] }}" target="_blank">查看详情</a>
                    </div>
                    {% endfor %}

                    {% else %}

                     <div class="layui-card-body" >
                     暂无数据
                 {% endif %}

                </div>
            </div>
        </div>
    </div>

    </body>

{% endblock right %}
<!-- 此模板现有部分，除页面名称外，其他均不可编辑 -->